package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.KolOrderStatEntity;
import yf.mall.vo.KolOrderStatVo;

                                                    
/**
 * 统计信息表实体
 * 表名 kol_order_stat
 *
 *
 * 
 * @date Sun Jul 30 10:43:48 CST 2023
 */
@Data
public class KolOrderStatDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //抖音openid
            @ExcelProperty("抖音openid")
            private String openId;
        
                        //有效销售额
            @ExcelProperty("有效销售额")
            private BigDecimal validPayAmount;
        
                        //有效订单数
            @ExcelProperty("有效订单数")
            private BigDecimal validOrderCount;
        
                        //有效佣金
            @ExcelProperty("有效佣金")
            private BigDecimal validEstimatedCommission;
        
                        //全部销售额
            @ExcelProperty("全部销售额")
            private BigDecimal totalPayAmount;
        
                        //全部订单数
            @ExcelProperty("全部订单数")
            private BigDecimal orderCount;
        
                        //全部佣金
            @ExcelProperty("全部佣金")
            private BigDecimal estimatedCommission;
        
                        //退款销售额
            @ExcelProperty("退款销售额")
            private BigDecimal refundPayAmount;
        
                        //退款订单数
            @ExcelProperty("退款订单数")
            private BigDecimal refundOrderCount;
        
                        //退款佣金
            @ExcelProperty("退款佣金")
            private BigDecimal refundEstimatedCommission;
        
                        //退款率
            @ExcelProperty("退款率")
            private BigDecimal refundRatio;
        
                        //统计日期
            @ExcelProperty("统计日期")
            private Integer date;
        
    
    public KolOrderStatDown() {

    }

    public KolOrderStatDown(KolOrderStatVo vo) {
        KolOrderStatEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setOpenId(entity.getOpenId());
            
                                    this.setValidPayAmount(entity.getValidPayAmount());
            
                                    this.setValidOrderCount(entity.getValidOrderCount());
            
                                    this.setValidEstimatedCommission(entity.getValidEstimatedCommission());
            
                                    this.setTotalPayAmount(entity.getTotalPayAmount());
            
                                    this.setOrderCount(entity.getOrderCount());
            
                                    this.setEstimatedCommission(entity.getEstimatedCommission());
            
                                    this.setRefundPayAmount(entity.getRefundPayAmount());
            
                                    this.setRefundOrderCount(entity.getRefundOrderCount());
            
                                    this.setRefundEstimatedCommission(entity.getRefundEstimatedCommission());
            
                                    this.setRefundRatio(entity.getRefundRatio());
            
                                    this.setDate(entity.getDate());
            
            }


}
